package com.wise.service.cms.content.productindustry.product;

import com.wise.summer.v1.cms.content.product.GetProductById;
import com.wise.summer.v1.cms.content.productindustry.GetProductIndustryById;
import org.springframework.beans.BeanUtils;
import org.springframework.stereotype.Service;
import org.summerframework.model.SummerService;
import org.summerframework.model.SummerServiceBean;

/**
 * @author shaoming
 * @date 2019-09-09
 */
@Service
@SummerService
public class GetProductIndustryByIdService implements SummerServiceBean<GetProductIndustryById> {
	@Override
	public void sum(GetProductIndustryById summer) {
		GetProductById getProductById = new GetProductById();
		BeanUtils.copyProperties(summer, getProductById);
		getProductById.sum();
		summer.setSummerResult(getProductById.getSummerResult());
	}
}
